package io.renren.modules.mvs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.mvs.dto.ViolationDto;
import io.renren.modules.mvs.entity.ViolationEntity;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 违章记录表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2025-03-30 17:08:24
 */
public interface ViolationService extends IService<ViolationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取违章记录表相关字段关联的数据
     */
    Map<String, List<?>> getLinkedData(List<String> plateNumbers, List<String> violationTypeNames);

    /**
     * 获取指定用户的不在罚单里并且状态为未处理的违章记录id集合
     */
    List<Long> getIdListByUserId(Long userId);

    /**
     * 获取指定日期范围内每日的违章次数
     */
    Map<String, Collection<?>> getNumberListByDateRange(String startDate, String endDate);

    void saveViolation(ViolationEntity violation);

    ViolationDto getDetailInfoById(Long id);
}

